package com.itheima.mapper;

import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;

@Mapper
public interface MemberMapper {

    /**
     * 根据月份得到会员数
     * @param dateList
     * @return
     */
    Integer findMemberCountBeforeDate(LocalDate dateList);

    /**
     * 今日新增会员数
     * @param today
     * @return
     */
    Integer findMemberCountByDate(String today);

    /**
     * 总会员数
     * @return
     */
    Integer findMemberTotalCount();

    /**
     * 本周新增会员数  本月新增会员数
     * @param thisWeekMonday
     * @return
     */
    Integer findMemberCountAfterDate(String thisWeekMonday);

}
